【已解决】There is insufficient memory for the Java Runtime Environment to continue |
您所在的位置:网站首页 › thread attach翻译 › 【已解决】There is insufficient memory for the Java Runtime Environment to continue |
错误
错误如下,JRE内存不足。 查看上述文件: # The system is out of physical RAM or swap space # The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= # JVM is running with Zero Based Compressed Oops mode in which the Java heap is # placed in the first 32GB address space. The Java Heap base address is the # maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress # to set the Java Heap base and to place the Java Heap above 32GB virtual address. # This output file may be truncated or incomplete.首先查看服务器的内存肯定是够的,因此尝试减小了Java堆的大小,在/etc/profile文件中添加JAVA_OPTS export JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx1024m -Xss1024K -XX:PermSize=128m -XX:MaxPermSize=256m"JAVA堆默认分配的最大内存为系统内存的1/4,我服务器内存32G,因此默认32/4=8G。现在为Java 堆分配的内存变成1G,问题解决。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |